package com.fit.entities.classes;

import java.util.Date;
import java.util.LinkedList;
import java.util.List;

import javax.persistence.AssociationOverride;
import javax.persistence.AssociationOverrides;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.apache.tapestry5.beaneditor.NonVisual;

import com.fit.entities.course.Course;
import com.fit.entities.homework.Homework;
import com.fit.entities.homeworkRecords.HomeworkRecords;
import com.fit.entities.language.Language;
import com.fit.entities.presenceOnClasses.PresenceOnClasses;
import com.fit.entities.professor.Professor;
import com.fit.entities.student.Student;
import com.fit.entities.studentOfTheCourse.StudentOfTheCoursePk;
import com.fit.entities.user.User;

@Entity
@Table(name = "classes")
public class Classes {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@NonVisual
	@Column(name = "classes_id")
	private Long classesId;

	
	
		@Column(name = "finishing_date", nullable = false)
	private Date date;
	@ManyToOne(optional = false)
	@JoinColumn(name = "id")
	private User user;
	@ManyToOne(optional = false)
	@JoinColumn(name = "course_id")
	private Course course;

	
	


	

	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Long getClassesId() {
		return classesId;
	}

	public void setClassesId(Long classesId) {
		this.classesId = classesId;
	}

	public Course getCourse() {
		return course;
	}

	public void setCourse(Course course) {
		this.course = course;
	}





}
